<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3>Alertas</h3>    
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_12">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>Listado de Aleratas</h6>
                </div>
                <div class="widget_content">                    
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Codigo</th>
                                <th>Nombre Alerta</th>
                                <th>Estilo</th>                                                     
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($alertas as $p): ?>
                                <tr class="gradeA">
                                    <td><?php echo h($p['Alerta']['id']); ?></td>       
                                    <td><?php echo h($p['Alerta']['color']); ?></td>
                                    <td><?php echo h($p['Alerta']['estilo']); ?></td>
                                    
                                </tr>                           
                            <?php endforeach; ?>
                        </tbody>
                        <!--<tfoot>
                            <tr>
                                <th>Nombre</th>
                                <th>Descripcion</th>
                                
                            </tr>
                        </tfoot>
                        -->
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

/////start index

<div class="alertas index">
	<h2><?php echo __('Alertas'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('color'); ?></th>
			<th><?php echo $this->Paginator->sort('estilo'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($alertas as $alerta): ?>
	<tr>
		<td><?php echo h($alerta['Alerta']['id']); ?>&nbsp;</td>
		<td><?php echo h($alerta['Alerta']['color']); ?>&nbsp;</td>
		<td><?php echo h($alerta['Alerta']['estilo']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $alerta['Alerta']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $alerta['Alerta']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $alerta['Alerta']['id']), null, __('Are you sure you want to delete # %s?', $alerta['Alerta']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Alerta'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Conceptos'), array('controller' => 'conceptos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Concepto'), array('controller' => 'conceptos', 'action' => 'add')); ?> </li>
	</ul>
</div>
